package settings;

/**
 * @author A0098808L Yuen Shu Hui
 */
public class SavingPot {
	private double savedAmount;
	private double toSaveAmount;

	/**
	 * @author A0098808L Yuen Shu Hui
	 */
	public SavingPot()
	{
		savedAmount = 0;
		toSaveAmount = 0;
	}

	/**
	 * Get saved amount in the saving pot
	 * @author A0098808L Yuen Shu Hui
	 * @return
	 */
	public double getSavedAmount() {
		return savedAmount;
	}

	/**
	 * Set saved amount in the saving pot (for initialization)
	 * @author A0098808L Yuen Shu Hui
	 * @param savedAmount
	 */
	public void setSavedAmount(double savedAmount) {
		this.savedAmount = savedAmount;
	}

	/**
	 * Increment or deposit amount to saving pot
	 * @author A0098808L Yuen Shu Hui
	 * @param newAmount
	 */
	public void IncrementSavedAmount(double newAmount) {
		this.savedAmount += newAmount;
	}

	/**
	 * decement of withdrawn amount from saving pot
	 * @author A0098808L Yuen Shu Hui
	 * @param newAmount
	 */
	public void DecrementSavedAmount(double newAmount) {
		this.savedAmount -= newAmount;
	}

	/**
	 * Get to save amount in saving pot
	 * @author A0098808L Yuen Shu Hui
	 * @return
	 */
	public double getToSaveAmount() {
		return toSaveAmount;
	}

	/**
	 * Set to save amount to new value
	 * @author A0098808L Yuen Shu Hui
	 * @param toSaveAmount
	 */
	public void setToSaveAmount(double toSaveAmount) {
		this.toSaveAmount = toSaveAmount;
	}

}
